package com.xfcy.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xfcy.blog.entity.UserLog;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 日志表(UserLog)表数据库访问层
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:06
 */
@Repository
public interface UserLogMapper extends BaseMapper<UserLog> {

    @MapKey("ip")
    List<Map<String, Object>> getUserAccess(@Param("date") String date);

}

